package com.fulu.javabase.reflection;

import java.util.HashMap;
import java.util.Map;

public class Person {

    private String id;
    private String name;
    private static Map<String, String> map = new HashMap<>();

    static {
        map.put("a", "aaa");
        map.put("b", "bbb");
    }

    private Person(){
        System.out.println("私有构造方法");
    }

    public String getName(String id){
        System.out.println("getName");
        return map.get(id);
    }

    private String getPrivateName(String id){
        System.out.println("私有方法");
        return map.get(id) + "private";
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
